<?php
/* --------------------------------------------------------------
   gm_pdf_logo.php 2008-05-06 gambio
   Gambio OHG
   http://www.gambio.de
   Copyright (c) 2008 Gambio OHG
   Released under the GNU General Public License (Version 2)
   [http://www.gnu.org/licenses/gpl-2.0.html]
   --------------------------------------------------------------
*/
	defined('_VALID_XTC') or die('Direct Access to this location is not allowed.');
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
	<tr>
		<td valign="top" align="left" class="main">
			<b><?php echo MENU_TITLE_LOGO; ?></b>
		</td>
	</tr>
</table>
<br />
<form enctype='multipart/form-data' method='post' action="<?php echo xtc_href_link('gm_pdf.php', 'action=logo'); ?>">
	<table border="0" width="100%" cellspacing="3" cellpadding="3" id="gm_table">
		<tr>
			<td valign="top" align="left" class="main" width="200">
				&nbsp;
			</td>
			<td valign="top" align="left" class="main">
				<?php 
									
					if(file_exists(DIR_FS_CATALOG_IMAGES . $gm_value)) {
						$imgsize = getimagesize(DIR_FS_CATALOG_IMAGES . $gm_value);
				?>
				<img src="<?php echo HTTP_CATALOG_SERVER . DIR_WS_CATALOG . DIR_WS_IMAGES . $gm_value; ?>" <?php echo $imgsize[3]; ?>>
				<?php 
					}
				?>
			</td>
		</tr>
		<tr>
			<td valign="top" align="left" class="main" width="120">
				<?php echo GM_PDF_TITLE_CHOOSE_LOGO; ?>
			</td>
			<td valign="top" align="left" class="main">
				<input type="file" name="logo">
			</td>
		</tr>
		<tr>
			<td colspan="2" valign="top" align="left" class="main">
				<input class="button" name="submit" type="submit" value="<?php echo BUTTON_SAVE;?>" style="width:150px;">&nbsp;
				<?php echo $_GET['result']; ?>
			</td>
		</tr>
	</table>
</form>